home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Windows 95 Programs / Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso / 1138 / source.zip / STRUCTS.H < prev    next >
C/C++ Source or Header  |  1995-02-13  |  2KB  |  66 lines

  1. /*      structs.h -- Basic data structures
  2.     This file is part of Paperboy, an offline mail/newsreader for Windows
  3.     Copyright (C) 1995  Michael H. Vartanian
  4.         vart@clark.net
  5.  
  6.     This program is free software; you can redistribute it and/or modify
  7.     it under the terms of the GNU General Public License as published by
  8.     the Free Software Foundation; either version 2 of the License, or
  9.     (at your option) any later version.
  10.  
  11.     This program is distributed in the hope that it will be useful,
  12.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.     GNU General Public License for more details.
  15.  
  16.     You should have received a copy of the GNU General Public License
  17.     along with this program; if not, write to the Free Software
  18.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. */
  20. /* Basic data structures for Paperboy SOUP DLL */
  21.  
  22. #ifndef HSTRUCTS
  23. #define HSTRUCTS
  24.  
  25. #include <time.h>
  26.  
  27. #define MSGMAGIC        0xDEDEDEDEL
  28. #define AREAMAGIC       0xBABABABAL
  29.  
  30. struct lltext
  31. {
  32.     struct lltext * next;    /* Pointer to next element in linked-list */
  33.     char * text;            /* Line of text */
  34. };
  35.  
  36.  
  37.  
  38. struct llmsg
  39. {
  40.     struct llmsg * next;    /* Pointer to next element in linked-list */
  41.     long magic;                /* Sanity check magic number */
  42.     long start;                /* Position in file of start */
  43.     long length;            /* Length of message */
  44.     char * subject;         /* Subject of message */
  45.     char * author;          /* Author of message */
  46.     char * date;            /* Date message was posted */
  47.     char * msgid;            /* Message-ID */
  48.     time_t idate;           /* Date in machine form */
  49.     time_t thread_idate;    /* Earliest date in thread */
  50.     int hasseen;            /* Message has been seen? */
  51. };
  52.  
  53. struct llareas
  54. {
  55.     struct llareas * next;  /* Pointer to next element in linked-list */
  56.     long magic;             /* Sanity check magic number */
  57.     char * name;            /* Name of area */
  58.     char * prefix;          /* Name of .MSG file containing messages */
  59.     char encoding[4];       /* Encoding of message area */
  60.     char * desc;            /* Description of message areas */
  61.     struct llmsg * head;    /* Top of messages list for this area */
  62.     int isfolder;           /* Is this a folder? */
  63. };
  64.  
  65. #endif
  66.